// =====================================================================================
// M8Pim: Provide a convenient way to manage personal information on Meizu M8.
// Copyright (C)  2009  tiger.lee  http://tigerlee.me
//
// GNU General Public Licence:
// ---------------------------
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or any
// later version.
// 
// This program is distributed in the hope that it will be useful,
//      but WITHOUT ANY WARRANTY; without even the implied warranty of
//      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//      GNU General Public License for more details.
// 
//      You should have received a copy of the GNU General Public License
//      along with this program.  If not, see <http://www.gnu.org/licenses/>.
//
// =====================================================================================

// =====================================================================================
//     Filename: PimUI.h
//  Description: This is a default file description
//
//       Create: 12/21/09 20:41:40
//       Author: tiger.lee
//        Email: i.m.tiger.lee(at)gmail.com
//      Website: http://tigerlee.me
//
//      Project: http://code.google.c/p/m8pim/
//   Bug Report: http://code.google.com/p/m8pim/issues/list
// =====================================================================================

#pragma once

#include <mzfc_inc.h>

template <typename Window>
Window* CreatePimWindow()
{
	RECT rcWork = MzGetWorkArea();
	Window* pWnd = new Window;
	pWnd->Create(rcWork.left, rcWork.top, RECT_WIDTH(rcWork), RECT_HEIGHT(rcWork), 0, 0, 0);
	pWnd->SetBgColor(MzGetThemeColor(TCI_WINDOW_BG));
	pWnd->SetAnimateType_Show(MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_2);
	pWnd->SetAnimateType_Hide(MZ_ANIMTYPE_SCROLL_BOTTOM_TO_TOP_2);
	return pWnd;
}

template <typename Window>
void DestoryPimWindow(Window *pWnd)
{
	delete pWnd;
	return;
}

// =====================================================================================
// vim: ft=cpp tabstop=4 shiftwidth=4

